<!--
 * @Author: XUFEI 734946269@qq.com
 * @Date: 2022-05-17 16:11:28
 * @LastEditTime: 2022-05-28 08:56:38
 * @LastEditors: XUFEI 734946269@qq.com
 * @Description: 
 * @FilePath: /yonyou-admin-ui/src/layout/components/Sidebar/Logo.vue
-->
<template>
  <div class="logo flx-center">
    <img src="@/assets/images/logo.jpg" alt="logo" width="80" />
    <span v-show="!isCollapse">Geeker Admin</span>
	</div>
</template>

<script setup>
</script>

<style lang="scss" scoped>
.sidebarLogoFade-enter-active {
  transition: opacity 1.5s;
}

.sidebarLogoFade-enter,
.sidebarLogoFade-leave-to {
  opacity: 0;
}

.sidebar-logo-container {
  position: relative;
  width: 100%;
  height: 50px;
  line-height: 50px;
  background: #2b2f3a;
  text-align: center;
  overflow: hidden;

  & .sidebar-logo-link {
    height: 100%;
    width: 100%;

    & .sidebar-logo {
      // width: 32px;
      // height: 32px;
      max-height: 24px;
      vertical-align: middle;
      margin-right: 12px;
    }

    img {
      display: inline-block;
      max-width: 100%;
      margin: auto;
    }

    & .sidebar-title {
      display: inline-block;
      margin: 0;
      color: #fff;
      font-weight: 600;
      line-height: 50px;
      font-size: 14px;
      font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
      vertical-align: middle;
    }
  }

  &.collapse {
    .sidebar-logo {
      margin-right: 0px;
      padding: 0 8px;
    }
  }
}
</style>
